﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace LogManager.Base.Data
{
    /// <summary>
    /// A repository to interact with the configured servers
    /// </summary>
    public interface IServerService : IDisposable
    {
        /// <summary>
        /// Get all servers
        /// </summary>
        /// <returns></returns>
        IEnumerable<IServer> All();

        /// <summary>
        /// Get a specific server
        /// </summary>
        /// <param name="serverName">Name of the server</param>
        /// <returns>The specified server</returns>
        IServer Get(string serverName);        
    }
}